package Lab05.Q6;

public class Shortcut extends File{
    File copy;
    public Shortcut(String name,File copy) {
        super(name);
        this.copy =copy;
    }
    public void setCopy(File copy) {
        this.copy = copy;
    }
    public void getCopy(){
        System.out.println(copy.getName()+"\n");
    }
    public void executeCommand(){
        copy.executeCommand();
    }
    public String toString(){
        return copy.toString();
    }
}
